package com.flightan.app;

import com.flightan.app.model.Flight;
import com.flightan.app.parser.Kurumoch;

import java.io.IOException;
import java.util.List;

/**
 * User: Aleks
 * Date: 01.08.11
 * Time: 23:12
 */
public class Test
{
    public static void main(String[] args) throws IOException
    {
        Kurumoch kurumoch = new Kurumoch();
        List<Flight> departureList = kurumoch.getDepartureFlights();
        Flight flight = departureList.get(5);
        System.out.println(flight);
        System.out.println(" ################################################# ");
        System.out.println(kurumoch.getDetailFlightByID(flight));
        System.out.println(" =============== ");
        departureList = kurumoch.getArrivalFlights();
        flight = departureList.get(5);
        System.out.println(flight);
        System.out.println(" ################################################# ");
        System.out.println(kurumoch.getDetailFlightByID(flight));

    }
}
